package com.neusoft.neuiotms.dcam.workflow.repository;

import java.util.List;

import org.springframework.data.jpa.repository.JpaRepository;

import com.neusoft.neuiotms.dcam.workflow.model.TuikuKJ;

public interface TuikuKJRepository extends JpaRepository<TuikuKJ, Long> {

    TuikuKJ findByTaskId(String taskId);

    TuikuKJ findByWorkOrderNumAndTaskId(String workOrderNum, String taskId);

    List<TuikuKJ> findByWorkOrderNum(String workOrderNum);

    List<TuikuKJ> findAllByWorkOrderNumOrderByCreateTimeDesc(String workOrderNum);

    TuikuKJ findTopByWorkOrderNumOrderByCreateTimeDesc(String workOrderNum);
}
